package com.ruoyi.source.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 农作物信息对象 src_crop_info
 * 
 * @author ruoyi
 * @date 2024-07-22
 */
@TableName("src_crop_info")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class SrcCropInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long cropId;

    /** 农作物名称 */
    @Excel(name = "农作物名称")
    private String cropName;

    /** 农作物类型 */
    @Excel(name = "农作物类型")
    private Long cropType;

    /** 肥料类型 */
    @Excel(name = "肥料类型")
    private Long manureType;

    /** 种植方式 */
    @Excel(name = "种植方式")
    private Long plantingWay;

    /** 种植年度 */
    @Excel(name = "种植年度")
    private String plantingYear;

    /** 是否套袋 0套袋 1不套 */
    @Excel(name = "是否套袋 0套袋 1不套")
    private String isBag;

    /** 灌溉周期 */
    @Excel(name = "灌溉周期")
    private String wateringPeriod;
    /**实际收货数量*/
    private String shidelivery;

    /** 育苗周期 */
    @Excel(name = "育苗周期")
    private String seedPeriod;

    /** 施肥周期 */
    @Excel(name = "施肥周期")
    private String manurePeriod;

    /** 除草周期 */
    @Excel(name = "除草周期")
    private String weedingPeriod;

    /** 省ID */
    private Long provinceId;

    /** 市ID */
    private Long cityId;

    /** 县ID */
    private Long countyId;

    /** 所属公司*/
    private Long deptId;

    /** 农作物图片 */
    @Excel(name = "农作物图片")
    private String cropImg;
    /** 种植开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date plantCreated;
    /** 生长周期 */
    private Integer growthCycle;
    /** 种植结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date plantEndTime;
    /** 种植范围 */
    private BigDecimal plantRange;
    /** 每/斤 */
    private BigDecimal plantAxe;
    /** 共收货 */
    private BigDecimal delivery;

    @TableField(exist = false)
    private String cropTypeName;

    @TableField(exist = false)
    private String manureTypeName;

    @TableField(exist = false)
    private String plantingWayName;

    @TableField(exist = false)
    private String address;
    @TableField(exist = false)
    private String recordStatus;
    /**是否采摘 0采摘 1已成熟待采摘  2 未成熟 */
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getShidelivery() {
        return shidelivery;
    }

    public void setShidelivery(String shidelivery) {
        this.shidelivery = shidelivery;
    }

    public String getRecordStatus() {
        return recordStatus;
    }

    public void setRecordStatus(String recordStatus) {
        this.recordStatus = recordStatus;
    }

    public Long getCropId() {
        return cropId;
    }

    public void setCropId(Long cropId) {
        this.cropId = cropId;
    }

    public String getCropName() {
        return cropName;
    }

    public void setCropName(String cropName) {
        this.cropName = cropName;
    }

    public Long getCropType() {
        return cropType;
    }

    public void setCropType(Long cropType) {
        this.cropType = cropType;
    }

    public Long getManureType() {
        return manureType;
    }

    public void setManureType(Long manureType) {
        this.manureType = manureType;
    }

    public Long getPlantingWay() {
        return plantingWay;
    }

    public void setPlantingWay(Long plantingWay) {
        this.plantingWay = plantingWay;
    }

    public String getPlantingYear() {
        return plantingYear;
    }

    public void setPlantingYear(String plantingYear) {
        this.plantingYear = plantingYear;
    }

    public String getIsBag() {
        return isBag;
    }

    public void setIsBag(String isBag) {
        this.isBag = isBag;
    }

    public String getWateringPeriod() {
        return wateringPeriod;
    }

    public void setWateringPeriod(String wateringPeriod) {
        this.wateringPeriod = wateringPeriod;
    }

    public String getSeedPeriod() {
        return seedPeriod;
    }

    public void setSeedPeriod(String seedPeriod) {
        this.seedPeriod = seedPeriod;
    }

    public String getManurePeriod() {
        return manurePeriod;
    }

    public void setManurePeriod(String manurePeriod) {
        this.manurePeriod = manurePeriod;
    }

    public String getWeedingPeriod() {
        return weedingPeriod;
    }

    public void setWeedingPeriod(String weedingPeriod) {
        this.weedingPeriod = weedingPeriod;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getCountyId() {
        return countyId;
    }

    public void setCountyId(Long countyId) {
        this.countyId = countyId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getCropImg() {
        return cropImg;
    }

    public void setCropImg(String cropImg) {
        this.cropImg = cropImg;
    }

    public Date getPlantCreated() {
        return plantCreated;
    }

    public void setPlantCreated(Date plantCreated) {
        this.plantCreated = plantCreated;
    }

    public Integer getGrowthCycle() {
        return growthCycle;
    }

    public void setGrowthCycle(Integer growthCycle) {
        this.growthCycle = growthCycle;
    }

    public Date getPlantEndTime() {
        return plantEndTime;
    }

    public void setPlantEndTime(Date plantEndTime) {
        this.plantEndTime = plantEndTime;
    }

    public BigDecimal getPlantRange() {
        return plantRange;
    }

    public void setPlantRange(BigDecimal plantRange) {
        this.plantRange = plantRange;
    }

    public BigDecimal getPlantAxe() {
        return plantAxe;
    }

    public void setPlantAxe(BigDecimal plantAxe) {
        this.plantAxe = plantAxe;
    }

    public BigDecimal getDelivery() {
        return delivery;
    }

    public void setDelivery(BigDecimal delivery) {
        this.delivery = delivery;
    }

    public String getCropTypeName() {
        return cropTypeName;
    }

    public void setCropTypeName(String cropTypeName) {
        this.cropTypeName = cropTypeName;
    }

    public String getManureTypeName() {
        return manureTypeName;
    }

    public void setManureTypeName(String manureTypeName) {
        this.manureTypeName = manureTypeName;
    }

    public String getPlantingWayName() {
        return plantingWayName;
    }

    public void setPlantingWayName(String plantingWayName) {
        this.plantingWayName = plantingWayName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
